package com.hkj.configcenter.admin.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class Tree implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long menuId;

    private String name;

    private String text;

    private String remark;

    private Long parentId;

    private String url;

    private String icon;

    private String createTime;

    private String updateTime;

    private List<Tree> children = new ArrayList<>();

    public void addChildren(Tree sysMenu) {
        children.add(sysMenu);
    }

}
